<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="transcode.js"></script>
    <script src="myOssSdk.js"></script>
    <script src="uploadAliyun.js"></script>

    <style>
        input {
            cursor: pointer;
        }
    </style>
</head>
<body>
<input type="file" name="file" id="file" multiple/>
<button type="button" onclick="start()">开始上传</button>
<script>
    console.log()
    $("#file").change(function(){
        var file=this.files[0];//获取文件流
        GlobalUploadFile(file, 'image', function (res) {
            console.log(res)
        }, function (err) {
            console.log(err)
        })
    })
</script>
</body>
</html>